package com.jg.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author 晓东√
 * @since 2025-09-19 11:18
 */
@Getter
@Setter
@ToString
@TableName("contract")
@Schema(name = "Contract", description = "合同表")
public class Contract extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 合同ID
     */
    @Schema(description = "合同ID")
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    /**
     * 供应商ID
     */
    @TableField("supplier_id")
    @Schema(description = "供应商ID")
    private Integer supplierId;

    /**
     * 合同开始日期
     */
    @TableField("start_date")
    @Schema(description = "合同开始日期")
    private Date startDate;

    /**
     * 合同结束日期
     */
    @TableField("end_date")
    @Schema(description = "合同结束日期")
    private Date endDate;

    /**
     * 合同条款
     */
    @TableField("terms")
    @Schema(description = "合同条款")
    private String terms;

    /**
     * 合同
     */
    @TableField("term_url")
    @Schema(description = "合同")
    private String termUrl;
}
